#!/usr/bin/sh

if [ $# -ne 2 ]; then
echo "Usage: sh launch.sh <erlang node name> <machines>"
exit 1
fi

NODE="$1"
SCRIPT="prj2server.erl"
NODES=10
FILES="\"files\""
REP=3
S1='1'
MACHINES="$2"
VM="vm"

echo $MACHINES
echo "c(average). c(gossipprob). c(prj2server). c(db). c(fileupdate). c(fileretrieve). c(prj2). prj2:init($NODES, $FILES, $REP, $MACHINES). q()." | erl -name ${NODE}
